package model

type ReqStore struct {
	Id        int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id"`
	Acid      int    `json:"acid" form:"acid"`
	Name      string `json:"name" form:"name" binding:"required" required_err:"请输入门店名称"`
	Img       string `json:"img" form:"img" binding:"required" required_err:"请上传门店照片"`
	Hours     string `json:"hours" form:"hours" binding:"required" required_err:"请输入门店营业时间"`
	Tel       string `json:"tel" form:"tel" binding:"required" required_err:"请输入门店客服电话"`
	Address   string `json:"address" form:"address" binding:"required" required_err:"请输入门店地址"`
	Location  string `json:"location" form:"location" binding:"required" required_err:"请输入门店地图坐标"`
	CreatedAt int    `xorm:"created" json:"created_at" form:"created_at"`
	UpdatedAt int    `xorm:"updated" json:"updated_at" form:"updated_at"`
	DeletedAt int    `xorm:"deleted" json:"deleted_at" form:"deleted_at"`
}

func (ReqStore) TableName() string {
	return "store"
}
